package br.com.educa.controle;

import br.com.educa.modelo.academico.Alunos;
import br.com.educa.modelo.academico.AlunosTurmas;
import br.com.educa.modelo.academico.Cursos;
import br.com.educa.modelo.academico.Esportes;
import br.com.educa.modelo.academico.RecursosSalas;
import br.com.educa.modelo.academico.Salas;
import br.com.educa.modelo.academico.Turmas;
import br.com.educa.modelo.acl.AclClass;
import br.com.educa.modelo.acl.AclEntry;
import br.com.educa.modelo.acl.AclObjectIdentity;
import br.com.educa.modelo.acl.AclSid;
import br.com.educa.modelo.disciplinar.Circunstancias;
import br.com.educa.modelo.disciplinar.Elogios;
import br.com.educa.modelo.disciplinar.ElogiosTipos;
import br.com.educa.modelo.disciplinar.Justificacoes;
import br.com.educa.modelo.disciplinar.Meritos;
import br.com.educa.modelo.disciplinar.MeritosTipos;
import br.com.educa.modelo.disciplinar.Punicoes;
import br.com.educa.modelo.disciplinar.PunicoesTipos;
import br.com.educa.modelo.disciplinar.Transgressoes;
import br.com.educa.modelo.financeiro.Historicos;
import br.com.educa.modelo.financeiro.LancamentosAlunos;
import br.com.educa.modelo.pessoa.Pessoas;
import br.com.educa.modelo.publico.Arquivo;
import br.com.educa.modelo.publico.Bairro;
import br.com.educa.modelo.publico.Cidade;
import br.com.educa.modelo.publico.Estado;
import br.com.educa.modelo.publico.Pais;
import br.com.educa.modelo.security.Menu;
import br.com.educa.modelo.security.Perfil;
import br.com.educa.modelo.security.Usuario;
import br.com.educa.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.core.convert.converter.Converter;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.support.FormattingConversionServiceFactoryBean;
import org.springframework.roo.addon.web.mvc.controller.converter.RooConversionService;

@Configurable
/**
 * A central place to register application converters and formatters. 
 */
@RooConversionService
public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean {

	@Override
	protected void installFormatters(FormatterRegistry registry) {
		super.installFormatters(registry);
		// Register application converters and formatters
	}

	public Converter<Alunos, String> getAlunosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.Alunos, java.lang.String>() {
            public String convert(Alunos alunos) {
                return new StringBuilder().append(alunos.getMatricula()).append(' ').append(alunos.getAtivo()).append(' ').append(alunos.getEscolaOrigem()).append(' ').append(alunos.getFilhoDe()).toString();
            }
        };
    }

	public Converter<Long, Alunos> getIdToAlunosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.Alunos>() {
            public br.com.educa.modelo.academico.Alunos convert(java.lang.Long id) {
                return Alunos.findAlunos(id);
            }
        };
    }

	public Converter<String, Alunos> getStringToAlunosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.Alunos>() {
            public br.com.educa.modelo.academico.Alunos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Alunos.class);
            }
        };
    }

	public Converter<Esportes, String> getEsportesToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.Esportes, java.lang.String>() {
            public String convert(Esportes esportes) {
                return new StringBuilder().append(esportes.getEsporte()).toString();
            }
        };
    }

	public Converter<Long, Esportes> getIdToEsportesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.Esportes>() {
            public br.com.educa.modelo.academico.Esportes convert(java.lang.Long id) {
                return Esportes.findEsportes(id);
            }
        };
    }

	public Converter<String, Esportes> getStringToEsportesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.Esportes>() {
            public br.com.educa.modelo.academico.Esportes convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Esportes.class);
            }
        };
    }

	public Converter<Elogios, String> getElogiosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Elogios, java.lang.String>() {
            public String convert(Elogios elogios) {
                return new StringBuilder().append(elogios.getDataRegistro()).append(' ').append(elogios.getReferencia()).append(' ').append(elogios.getDescricao()).toString();
            }
        };
    }

	public Converter<Long, Elogios> getIdToElogiosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Elogios>() {
            public br.com.educa.modelo.disciplinar.Elogios convert(java.lang.Long id) {
                return Elogios.findElogios(id);
            }
        };
    }

	public Converter<String, Elogios> getStringToElogiosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Elogios>() {
            public br.com.educa.modelo.disciplinar.Elogios convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Elogios.class);
            }
        };
    }

	public Converter<Punicoes, String> getPunicoesToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Punicoes, java.lang.String>() {
            public String convert(Punicoes punicoes) {
                return new StringBuilder().append(punicoes.getDataRegistro()).append(' ').append(punicoes.getDescricao()).append(' ').append(punicoes.getDiasSuspensao()).toString();
            }
        };
    }

	public Converter<Long, Punicoes> getIdToPunicoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Punicoes>() {
            public br.com.educa.modelo.disciplinar.Punicoes convert(java.lang.Long id) {
                return Punicoes.findPunicoes(id);
            }
        };
    }

	public Converter<String, Punicoes> getStringToPunicoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Punicoes>() {
            public br.com.educa.modelo.disciplinar.Punicoes convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Punicoes.class);
            }
        };
    }

	public Converter<Pessoas, String> getPessoasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.pessoa.Pessoas, java.lang.String>() {
            public String convert(Pessoas pessoas) {
                return new StringBuilder().append(pessoas.getNome()).append(' ').append(pessoas.getCpf()).append(' ').append(pessoas.getNascimento()).append(' ').append(pessoas.getRgCivil()).toString();
            }
        };
    }

	public Converter<Long, Pessoas> getIdToPessoasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.pessoa.Pessoas>() {
            public br.com.educa.modelo.pessoa.Pessoas convert(java.lang.Long id) {
                return Pessoas.findPessoas(id);
            }
        };
    }

	public Converter<String, Pessoas> getStringToPessoasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.pessoa.Pessoas>() {
            public br.com.educa.modelo.pessoa.Pessoas convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Pessoas.class);
            }
        };
    }

	public Converter<Bairro, String> getBairroToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.publico.Bairro, java.lang.String>() {
            public String convert(Bairro bairro) {
                return new StringBuilder().append(bairro.getBairro()).append(' ').append(bairro.getCep()).toString();
            }
        };
    }

	public Converter<Long, Bairro> getIdToBairroConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.publico.Bairro>() {
            public br.com.educa.modelo.publico.Bairro convert(java.lang.Long id) {
                return Bairro.findBairro(id);
            }
        };
    }

	public Converter<String, Bairro> getStringToBairroConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.publico.Bairro>() {
            public br.com.educa.modelo.publico.Bairro convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Bairro.class);
            }
        };
    }

	public Converter<Cidade, String> getCidadeToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.publico.Cidade, java.lang.String>() {
            public String convert(Cidade cidade) {
                return new StringBuilder().append(cidade.getCidade()).toString();
            }
        };
    }

	public Converter<Long, Cidade> getIdToCidadeConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.publico.Cidade>() {
            public br.com.educa.modelo.publico.Cidade convert(java.lang.Long id) {
                return Cidade.findCidade(id);
            }
        };
    }

	public Converter<String, Cidade> getStringToCidadeConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.publico.Cidade>() {
            public br.com.educa.modelo.publico.Cidade convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Cidade.class);
            }
        };
    }

	public Converter<Estado, String> getEstadoToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.publico.Estado, java.lang.String>() {
            public String convert(Estado estado) {
                return new StringBuilder().append(estado.getEstado()).append(' ').append(estado.getUf()).append(' ').append(estado.getDdd()).toString();
            }
        };
    }

	public Converter<Long, Estado> getIdToEstadoConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.publico.Estado>() {
            public br.com.educa.modelo.publico.Estado convert(java.lang.Long id) {
                return Estado.findEstado(id);
            }
        };
    }

	public Converter<String, Estado> getStringToEstadoConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.publico.Estado>() {
            public br.com.educa.modelo.publico.Estado convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Estado.class);
            }
        };
    }

	public Converter<Pais, String> getPaisToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.publico.Pais, java.lang.String>() {
            public String convert(Pais pais) {
                return new StringBuilder().append(pais.getPais()).toString();
            }
        };
    }

	public Converter<Long, Pais> getIdToPaisConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.publico.Pais>() {
            public br.com.educa.modelo.publico.Pais convert(java.lang.Long id) {
                return Pais.findPais(id);
            }
        };
    }

	public Converter<String, Pais> getStringToPaisConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.publico.Pais>() {
            public br.com.educa.modelo.publico.Pais convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Pais.class);
            }
        };
    }

	public void installLabelConverters(FormatterRegistry registry) {
        registry.addConverter(getAlunosToStringConverter());
        registry.addConverter(getIdToAlunosConverter());
        registry.addConverter(getStringToAlunosConverter());
        registry.addConverter(getEsportesToStringConverter());
        registry.addConverter(getIdToEsportesConverter());
        registry.addConverter(getStringToEsportesConverter());
        registry.addConverter(getElogiosToStringConverter());
        registry.addConverter(getIdToElogiosConverter());
        registry.addConverter(getStringToElogiosConverter());
        registry.addConverter(getPunicoesToStringConverter());
        registry.addConverter(getIdToPunicoesConverter());
        registry.addConverter(getStringToPunicoesConverter());
        registry.addConverter(getPessoasToStringConverter());
        registry.addConverter(getIdToPessoasConverter());
        registry.addConverter(getStringToPessoasConverter());
        registry.addConverter(getBairroToStringConverter());
        registry.addConverter(getIdToBairroConverter());
        registry.addConverter(getStringToBairroConverter());
        registry.addConverter(getCidadeToStringConverter());
        registry.addConverter(getIdToCidadeConverter());
        registry.addConverter(getStringToCidadeConverter());
        registry.addConverter(getEstadoToStringConverter());
        registry.addConverter(getIdToEstadoConverter());
        registry.addConverter(getStringToEstadoConverter());
        registry.addConverter(getPaisToStringConverter());
        registry.addConverter(getIdToPaisConverter());
        registry.addConverter(getStringToPaisConverter());
    }

	public void afterPropertiesSet() {
        super.afterPropertiesSet();
        installLabelConverters(getObject());
    }

	@Autowired
    MenuService menuService;

	public Converter<AlunosTurmas, String> getAlunosTurmasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.AlunosTurmas, java.lang.String>() {
            public String convert(AlunosTurmas alunosTurmas) {
                return new StringBuilder().append(alunosTurmas.getNumeroChamanda()).append(' ').append(alunosTurmas.getAno()).append(' ').append(alunosTurmas.getDataMatricula()).append(' ').append(alunosTurmas.getPercentualPresenca()).toString();
            }
        };
    }

	public Converter<Long, AlunosTurmas> getIdToAlunosTurmasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.AlunosTurmas>() {
            public br.com.educa.modelo.academico.AlunosTurmas convert(java.lang.Long id) {
                return AlunosTurmas.findAlunosTurmas(id);
            }
        };
    }

	public Converter<String, AlunosTurmas> getStringToAlunosTurmasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.AlunosTurmas>() {
            public br.com.educa.modelo.academico.AlunosTurmas convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), AlunosTurmas.class);
            }
        };
    }

	public Converter<Cursos, String> getCursosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.Cursos, java.lang.String>() {
            public String convert(Cursos cursos) {
                return new StringBuilder().append(cursos.getCurso()).append(' ').append(cursos.getSequencia()).toString();
            }
        };
    }

	public Converter<Long, Cursos> getIdToCursosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.Cursos>() {
            public br.com.educa.modelo.academico.Cursos convert(java.lang.Long id) {
                return Cursos.findCursos(id);
            }
        };
    }

	public Converter<String, Cursos> getStringToCursosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.Cursos>() {
            public br.com.educa.modelo.academico.Cursos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Cursos.class);
            }
        };
    }

	public Converter<RecursosSalas, String> getRecursosSalasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.RecursosSalas, java.lang.String>() {
            public String convert(RecursosSalas recursosSalas) {
                return new StringBuilder().append(recursosSalas.getRecurso()).toString();
            }
        };
    }

	public Converter<Long, RecursosSalas> getIdToRecursosSalasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.RecursosSalas>() {
            public br.com.educa.modelo.academico.RecursosSalas convert(java.lang.Long id) {
                return RecursosSalas.findRecursosSalas(id);
            }
        };
    }

	public Converter<String, RecursosSalas> getStringToRecursosSalasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.RecursosSalas>() {
            public br.com.educa.modelo.academico.RecursosSalas convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), RecursosSalas.class);
            }
        };
    }

	public Converter<Salas, String> getSalasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.Salas, java.lang.String>() {
            public String convert(Salas salas) {
                return new StringBuilder().append(salas.getSala()).append(' ').append(salas.getUtilizacao()).append(' ').append(salas.getCapacidade()).toString();
            }
        };
    }

	public Converter<Long, Salas> getIdToSalasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.Salas>() {
            public br.com.educa.modelo.academico.Salas convert(java.lang.Long id) {
                return Salas.findSalas(id);
            }
        };
    }

	public Converter<String, Salas> getStringToSalasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.Salas>() {
            public br.com.educa.modelo.academico.Salas convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Salas.class);
            }
        };
    }

	public Converter<Turmas, String> getTurmasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.academico.Turmas, java.lang.String>() {
            public String convert(Turmas turmas) {
                return new StringBuilder().append(turmas.getTurma()).append(' ').append(turmas.getNomeTurma()).append(' ').append(turmas.getVagas()).append(' ').append(turmas.getValorContribuicao()).toString();
            }
        };
    }

	public Converter<Long, Turmas> getIdToTurmasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.academico.Turmas>() {
            public br.com.educa.modelo.academico.Turmas convert(java.lang.Long id) {
                return Turmas.findTurmas(id);
            }
        };
    }

	public Converter<String, Turmas> getStringToTurmasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.academico.Turmas>() {
            public br.com.educa.modelo.academico.Turmas convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Turmas.class);
            }
        };
    }

	public Converter<AclClass, String> getAclClassToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.acl.AclClass, java.lang.String>() {
            public String convert(AclClass aclClass) {
                return new StringBuilder().append(aclClass.getClazz()).toString();
            }
        };
    }

	public Converter<Long, AclClass> getIdToAclClassConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.acl.AclClass>() {
            public br.com.educa.modelo.acl.AclClass convert(java.lang.Long id) {
                return AclClass.findAclClass(id);
            }
        };
    }

	public Converter<String, AclClass> getStringToAclClassConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.acl.AclClass>() {
            public br.com.educa.modelo.acl.AclClass convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), AclClass.class);
            }
        };
    }

	public Converter<AclEntry, String> getAclEntryToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.acl.AclEntry, java.lang.String>() {
            public String convert(AclEntry aclEntry) {
                return new StringBuilder().append(aclEntry.getAceOrder()).append(' ').append(aclEntry.getMask()).toString();
            }
        };
    }

	public Converter<Long, AclEntry> getIdToAclEntryConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.acl.AclEntry>() {
            public br.com.educa.modelo.acl.AclEntry convert(java.lang.Long id) {
                return AclEntry.findAclEntry(id);
            }
        };
    }

	public Converter<String, AclEntry> getStringToAclEntryConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.acl.AclEntry>() {
            public br.com.educa.modelo.acl.AclEntry convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), AclEntry.class);
            }
        };
    }

	public Converter<AclObjectIdentity, String> getAclObjectIdentityToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.acl.AclObjectIdentity, java.lang.String>() {
            public String convert(AclObjectIdentity aclObjectIdentity) {
                return new StringBuilder().append(aclObjectIdentity.getObjectIdIdentity()).toString();
            }
        };
    }

	public Converter<Long, AclObjectIdentity> getIdToAclObjectIdentityConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.acl.AclObjectIdentity>() {
            public br.com.educa.modelo.acl.AclObjectIdentity convert(java.lang.Long id) {
                return AclObjectIdentity.findAclObjectIdentity(id);
            }
        };
    }

	public Converter<String, AclObjectIdentity> getStringToAclObjectIdentityConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.acl.AclObjectIdentity>() {
            public br.com.educa.modelo.acl.AclObjectIdentity convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), AclObjectIdentity.class);
            }
        };
    }

	public Converter<AclSid, String> getAclSidToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.acl.AclSid, java.lang.String>() {
            public String convert(AclSid aclSid) {
                return new StringBuilder().append(aclSid.getSid()).toString();
            }
        };
    }

	public Converter<Long, AclSid> getIdToAclSidConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.acl.AclSid>() {
            public br.com.educa.modelo.acl.AclSid convert(java.lang.Long id) {
                return AclSid.findAclSid(id);
            }
        };
    }

	public Converter<String, AclSid> getStringToAclSidConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.acl.AclSid>() {
            public br.com.educa.modelo.acl.AclSid convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), AclSid.class);
            }
        };
    }

	public Converter<Circunstancias, String> getCircunstanciasToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Circunstancias, java.lang.String>() {
            public String convert(Circunstancias circunstancias) {
                return new StringBuilder().append(circunstancias.getArtigo()).append(' ').append(circunstancias.getCircunstancia()).toString();
            }
        };
    }

	public Converter<Long, Circunstancias> getIdToCircunstanciasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Circunstancias>() {
            public br.com.educa.modelo.disciplinar.Circunstancias convert(java.lang.Long id) {
                return Circunstancias.findCircunstancias(id);
            }
        };
    }

	public Converter<String, Circunstancias> getStringToCircunstanciasConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Circunstancias>() {
            public br.com.educa.modelo.disciplinar.Circunstancias convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Circunstancias.class);
            }
        };
    }

	public Converter<ElogiosTipos, String> getElogiosTiposToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.ElogiosTipos, java.lang.String>() {
            public String convert(ElogiosTipos elogiosTipos) {
                return new StringBuilder().append(elogiosTipos.getElogio()).append(' ').append(elogiosTipos.getValor()).toString();
            }
        };
    }

	public Converter<Long, ElogiosTipos> getIdToElogiosTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.ElogiosTipos>() {
            public br.com.educa.modelo.disciplinar.ElogiosTipos convert(java.lang.Long id) {
                return ElogiosTipos.findElogiosTipos(id);
            }
        };
    }

	public Converter<String, ElogiosTipos> getStringToElogiosTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.ElogiosTipos>() {
            public br.com.educa.modelo.disciplinar.ElogiosTipos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), ElogiosTipos.class);
            }
        };
    }

	public Converter<Justificacoes, String> getJustificacoesToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Justificacoes, java.lang.String>() {
            public String convert(Justificacoes justificacoes) {
                return new StringBuilder().append(justificacoes.getJustificativa()).toString();
            }
        };
    }

	public Converter<Long, Justificacoes> getIdToJustificacoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Justificacoes>() {
            public br.com.educa.modelo.disciplinar.Justificacoes convert(java.lang.Long id) {
                return Justificacoes.findJustificacoes(id);
            }
        };
    }

	public Converter<String, Justificacoes> getStringToJustificacoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Justificacoes>() {
            public br.com.educa.modelo.disciplinar.Justificacoes convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Justificacoes.class);
            }
        };
    }

	public Converter<Meritos, String> getMeritosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Meritos, java.lang.String>() {
            public String convert(Meritos meritos) {
                return new StringBuilder().append(meritos.getDataRegistro()).append(' ').append(meritos.getDescricao()).toString();
            }
        };
    }

	public Converter<Long, Meritos> getIdToMeritosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Meritos>() {
            public br.com.educa.modelo.disciplinar.Meritos convert(java.lang.Long id) {
                return Meritos.findMeritos(id);
            }
        };
    }

	public Converter<String, Meritos> getStringToMeritosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Meritos>() {
            public br.com.educa.modelo.disciplinar.Meritos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Meritos.class);
            }
        };
    }

	public Converter<MeritosTipos, String> getMeritosTiposToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.MeritosTipos, java.lang.String>() {
            public String convert(MeritosTipos meritosTipos) {
                return new StringBuilder().append(meritosTipos.getMerito()).append(' ').append(meritosTipos.getValor()).toString();
            }
        };
    }

	public Converter<Long, MeritosTipos> getIdToMeritosTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.MeritosTipos>() {
            public br.com.educa.modelo.disciplinar.MeritosTipos convert(java.lang.Long id) {
                return MeritosTipos.findMeritosTipos(id);
            }
        };
    }

	public Converter<String, MeritosTipos> getStringToMeritosTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.MeritosTipos>() {
            public br.com.educa.modelo.disciplinar.MeritosTipos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), MeritosTipos.class);
            }
        };
    }

	public Converter<PunicoesTipos, String> getPunicoesTiposToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.PunicoesTipos, java.lang.String>() {
            public String convert(PunicoesTipos punicoesTipos) {
                return new StringBuilder().append(punicoesTipos.getPunicao()).append(' ').append(punicoesTipos.getValor()).toString();
            }
        };
    }

	public Converter<Long, PunicoesTipos> getIdToPunicoesTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.PunicoesTipos>() {
            public br.com.educa.modelo.disciplinar.PunicoesTipos convert(java.lang.Long id) {
                return PunicoesTipos.findPunicoesTipos(id);
            }
        };
    }

	public Converter<String, PunicoesTipos> getStringToPunicoesTiposConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.PunicoesTipos>() {
            public br.com.educa.modelo.disciplinar.PunicoesTipos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), PunicoesTipos.class);
            }
        };
    }

	public Converter<Transgressoes, String> getTransgressoesToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.disciplinar.Transgressoes, java.lang.String>() {
            public String convert(Transgressoes transgressoes) {
                return new StringBuilder().append(transgressoes.getNumero()).append(' ').append(transgressoes.getTransgressao()).append(' ').append(transgressoes.getStatus()).toString();
            }
        };
    }

	public Converter<Long, Transgressoes> getIdToTransgressoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.disciplinar.Transgressoes>() {
            public br.com.educa.modelo.disciplinar.Transgressoes convert(java.lang.Long id) {
                return Transgressoes.findTransgressoes(id);
            }
        };
    }

	public Converter<String, Transgressoes> getStringToTransgressoesConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.disciplinar.Transgressoes>() {
            public br.com.educa.modelo.disciplinar.Transgressoes convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Transgressoes.class);
            }
        };
    }

	public Converter<Historicos, String> getHistoricosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.financeiro.Historicos, java.lang.String>() {
            public String convert(Historicos historicos) {
                return "(no displayable fields)";
            }
        };
    }

	public Converter<Long, Historicos> getIdToHistoricosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.financeiro.Historicos>() {
            public br.com.educa.modelo.financeiro.Historicos convert(java.lang.Long id) {
                return Historicos.findHistoricos(id);
            }
        };
    }

	public Converter<String, Historicos> getStringToHistoricosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.financeiro.Historicos>() {
            public br.com.educa.modelo.financeiro.Historicos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Historicos.class);
            }
        };
    }

	public Converter<LancamentosAlunos, String> getLancamentosAlunosToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.financeiro.LancamentosAlunos, java.lang.String>() {
            public String convert(LancamentosAlunos lancamentosAlunos) {
                return "(no displayable fields)";
            }
        };
    }

	public Converter<Long, LancamentosAlunos> getIdToLancamentosAlunosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.financeiro.LancamentosAlunos>() {
            public br.com.educa.modelo.financeiro.LancamentosAlunos convert(java.lang.Long id) {
                return LancamentosAlunos.findLancamentosAlunos(id);
            }
        };
    }

	public Converter<String, LancamentosAlunos> getStringToLancamentosAlunosConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.financeiro.LancamentosAlunos>() {
            public br.com.educa.modelo.financeiro.LancamentosAlunos convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), LancamentosAlunos.class);
            }
        };
    }

	public Converter<Arquivo, String> getArquivoToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.publico.Arquivo, java.lang.String>() {
            public String convert(Arquivo arquivo) {
                return new StringBuilder().append(arquivo.getDataImagem()).append(' ').append(arquivo.getDescricao()).append(' ').append(arquivo.getNome()).append(' ').append(arquivo.getContentType()).toString();
            }
        };
    }

	public Converter<Long, Arquivo> getIdToArquivoConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.publico.Arquivo>() {
            public br.com.educa.modelo.publico.Arquivo convert(java.lang.Long id) {
                return Arquivo.findArquivo(id);
            }
        };
    }

	public Converter<String, Arquivo> getStringToArquivoConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.publico.Arquivo>() {
            public br.com.educa.modelo.publico.Arquivo convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Arquivo.class);
            }
        };
    }

	public Converter<Menu, String> getMenuToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.security.Menu, java.lang.String>() {
            public String convert(Menu menu) {
                return new StringBuilder().append(menu.getOrdem()).append(' ').append(menu.getUrl()).append(' ').append(menu.getNome()).toString();
            }
        };
    }

	public Converter<Long, Menu> getIdToMenuConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.security.Menu>() {
            public br.com.educa.modelo.security.Menu convert(java.lang.Long id) {
                return menuService.findMenu(id);
            }
        };
    }

	public Converter<String, Menu> getStringToMenuConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.security.Menu>() {
            public br.com.educa.modelo.security.Menu convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Menu.class);
            }
        };
    }

	public Converter<Perfil, String> getPerfilToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.security.Perfil, java.lang.String>() {
            public String convert(Perfil perfil) {
                return new StringBuilder().append(perfil.getAuthority()).append(' ').append(perfil.getAlias()).toString();
            }
        };
    }

	public Converter<Long, Perfil> getIdToPerfilConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.security.Perfil>() {
            public br.com.educa.modelo.security.Perfil convert(java.lang.Long id) {
                return Perfil.findPerfil(id);
            }
        };
    }

	public Converter<String, Perfil> getStringToPerfilConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.security.Perfil>() {
            public br.com.educa.modelo.security.Perfil convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Perfil.class);
            }
        };
    }

	public Converter<Usuario, String> getUsuarioToStringConverter() {
        return new org.springframework.core.convert.converter.Converter<br.com.educa.modelo.security.Usuario, java.lang.String>() {
            public String convert(Usuario usuario) {
                return new StringBuilder().append(usuario.getPassword()).append(' ').append(usuario.getUsername()).append(' ').append(usuario.getEmail()).toString();
            }
        };
    }

	public Converter<Long, Usuario> getIdToUsuarioConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.Long, br.com.educa.modelo.security.Usuario>() {
            public br.com.educa.modelo.security.Usuario convert(java.lang.Long id) {
                return Usuario.findUsuario(id);
            }
        };
    }

	public Converter<String, Usuario> getStringToUsuarioConverter() {
        return new org.springframework.core.convert.converter.Converter<java.lang.String, br.com.educa.modelo.security.Usuario>() {
            public br.com.educa.modelo.security.Usuario convert(String id) {
                return getObject().convert(getObject().convert(id, Long.class), Usuario.class);
            }
        };
    }
}
